package com.kan.awaits.mongo;

import java.net.UnknownHostException;

import com.mongodb.MongoException;

public interface Configuration
{
	// runtimeMapping
	void setAutoMap(boolean autoMap);

	void setHostName(String hostName);

	void setHostPort(int port);

	/**
	 * @return
	 * @throws MongoException
	 * @throws UnknownHostException
	 */
	public Datastore getDatastore() throws UnknownHostException, MongoException;
}
